Skip to content

Conversation

@aryamohanan
Copy link
Contributor

@aryamohanan aryamohanan commented Nov 7, 2025

Use case:

  • Disable tracing for worker threads not part of the customer application.
  • Workers spawned by dependencies (e.g., pino) are no longer monitored.

Controlled via INSTANA_DISABLE_WORKER_THREADS environment variable.

refs https://jsw.ibm.com/browse/INSTA-62583

@aryamohanan aryamohanan requested a review from a team as a code owner November 7, 2025 17:09
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Suggestion:
feat: added ability to disable worker thread tracing


// Check if worker threads should be disabled via environment variable.
// Disabling worker threads may be necessary in environments where
// multi-threading causes issues or monitoring of worker threads is not required.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR gives the option to disable them completely. Useful also for other cases.

We will look into a long-term solution via #2130

@aryamohanan aryamohanan changed the title feat: disable monitoring for worker threads feat: added ability to disable worker thread tracing Nov 7, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

@aryamohanan aryamohanan merged commit 342d301 into main Nov 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants